﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>账户余额 - ${web.name}${web.additionalTitle!}</title>
    <link href="${root}/css/global.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/layout.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/member.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/buy.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/order.css" type="text/css" rel="stylesheet"/>

    <script src="${root}/js/jquery.js" type="text/javascript"></script>
    <script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#baseForm").validate();
        });

        function checkStatus(status) {
            if (status == 1) {
                $("#status").attr("value", '');
                $("#useStatus").attr("value", '');
            } else {
                $("#status").attr("value", status);
                $("#useStatus").attr("value", '');
            }
            $("#baseForm").submit();
        }

        function checkStatus(status) {
            $("#status").attr("value", status);
            $("#baseForm").submit();
        }
    </script>
</head>
<body>
[#--
[#include '../shop/develop/inc_head.html'/]
--]
[#include "../include/header_top.html"/]
<div id="head">
    [#include "../include/header_search.html"/]
    [#include "../include/header_nav.html"/]
</div>
<div class="w960 mt10">
    [#include "member_nav.html"/]
    <div id="container" class="user_right clearfix">
        <div class="usercenter_position"><span>账户明细</span> <a href="" target="_blank"
                                                              style="color: #1A66B3;float:right;">充值</a></div>
        <div class="dd_list">
            <ul style="width: 500px">
                <li><a href="#wx">您目前的账户余额为：<font color="red" size="3"><b>${member.money!} </b></font>元</a></li>
            </ul>
        </div>
        <div id="demo2" class="s-demo">
            <form id="baseForm" action="mymoney.htm" method="post">
                <input type="hidden" id="status" name="status" value="${status!}"/>
                <ul class="ks-switchable-nav clearfix">
                    <li
                    [#if !(status??)]class="ks-active"[/#if]><a href="javascript:vodi(0);" onclick="checkStatus(1);">全部明细
                    [@money_page count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                    <li
                    [#if status??&status==1]class="ks-active"[/#if]><a href="javascript:vodi(0);"
                                                                       onclick="checkStatus(1);">全部收入[@money_page
                    status='1' count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                    <li
                    [#if status??&status==0]class="ks-active"[/#if]><a href="javascript:vodi(0);"
                                                                       onclick="checkStatus(0);">全部支出[@money_page
                    status='0' count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                </ul>
                <div id="queryCodeNum">
                    时间:<input type="text" name="startTime" [#if startTime??]value="${startTime!}"[/#if]
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:80px"/>至:
                    <input type="text" name="endTime" [#if endTime??]value="${endTime!}"[/#if]
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:80px"/>
                    <input id="toQuery" type="submit" value="查询"/>
                </div>
                <div class="ks-switchable-content">
                    <div>
                        <table id="detailShowtab">
                            <thead>
                            <tr>
                                <th width="225" style="text-align:left; padding-left:20px;">来源 / 用途</th>
                                <th width="60">收入</th>
                                <th width="75">支出</th>
                                <th width="105">日期</th>
                                <!-- <th width="105">节省</th> -->
                                <th width="50">备注</th>
                            </tr>
                            </thead>
                            <tbody>
                            [@money_page status=status startTime=startTime endTime=endTime count='10']
                            [#if tag_list?size gt 0]
                            [#list tag_list as shopMoney]
                            <tr>
                                <td style="text-align:left;vertical-align: middle; height:60px;">

                                </td>
                                <td></td>
                                <td></td>
                                <td>${shopMoney.scoreTime!}</td>
                                <!--  <td></td> -->
                                <td>${shopMoney.remark!}</td>
                            </tr>
                            [/#list]
                            <tr align="center">
                                <td colspan="5">[@pagination_style sysPage='1'/]</td>
                            </tr>
                            [#else]
                            <tr align="center">
                                <td colspan="5"> 暂时没有账户出入明细！</td>
                            </tr>
                            [/#if]
                            [/@money_page]
                            </tbody>
                        </table>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="clear"></div>

[#include "../include/footer.html"/]
</body>
</html>